package com.wenjunwu.blog.service;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import com.github.pagehelper.Page;
import com.wenjunwu.blog.entity.BlogContent;

public interface BlogContentService {

	void save(HttpServletRequest request);

	List<BlogContent> getBlogsByParams(Map<String, Object> params);

	Map<String, List<BlogContent>> selectSummarys(Map<String, Object> params, String groupByParam);

	BlogContent selectByPrimaryKey(Long id);

	Page<BlogContent> findBlogPage(int pageNum, int pageSize, Map<String, Object> params);
	
	int updateByPrimaryKey(BlogContent record);

}
